package com.sinochem.yunlian.ship.base.entity;

import com.sinochem.yunlian.ship.api.vo.uc.UcUserInfo;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by ${pc} on 2018/1/26
 */
@Data
@Table(name = "bs_app_banner")
public class BsAppBanner implements Serializable{

    @Id
    private Long id;

    @Column(name = "title")
    private String title;

    @Column(name = "url")
    private String imageUrl;

    @Column(name = "link_url")
    private String targetUrl;

    //显示顺序
    @Column(name = "seq_num")
    @NotNull(message = "显示排序不能为空")
    private  Integer seqNum;

    //0表示未删除 , 1表示已删除
    @Column(name = "delete_status")
    @NotNull(message = "状态不能为空")
    private  Integer deleteStatus;

    @Column(name = "create_by")
    private Long createBy;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_by")
    private Long updateBy;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "type")
    private Integer type;
}
